package org.demo.patten.proxy;

/**
 * @author zhuj
 * @date 2025/3/29
 * @apiNote
 */
public class ProxyTest {
    public static void main(String[] args) {
        Database db1 = new DatabaseProxy("GUEST");
        db1.query("SELECT * FROM users");
        Database db2 = new DatabaseProxy("ADMIN");
        db2.query("SELECT * FROM orders");
    }
}
